﻿Namespace Pop.Api.Parser

    ''' <summary>
    ''' Pop API响应解释器接口。响应格式是JSON。
    ''' </summary>
    ''' <typeparam name="T">领域对象</typeparam>
    Public Interface IPopParser(Of T)

        ''' <summary>
        ''' 把响应字符串解释成相应的领域对象。
        ''' </summary>
        ''' <param name="body">响应字符串</param>
        ''' <returns>领域对象</returns>
        Function Parse(ByVal body As String) As T

    End Interface

End Namespace